
package jaxb;

/**
 * Represents missing data in the data store
*/
public class RecordNotFoundException extends Exception {
    
    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	
	/**
     * The key used to search for the data in the data store
    */
    private Object key;
    
    /**
     * Creates a new instance of RecordNotFoundException
     * @param message The error message
     * @param key The key that was used in the search
    */
    public RecordNotFoundException(String message, Object key) {
        super(message);
        this.key = key;
    }

    /**
     * Returns the key used in the search
     * @return The key used in the search
     */
    public Object getKey() {
        return key;
    }
}
